package com.hckjsec.website.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.website.mapper.WebSiteTeamMapper;
import com.hckjsec.website.domain.WebSiteTeam;
import com.hckjsec.website.service.IWebSiteTeamService;

/**
 * 团队介绍Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-18
 */
@Service
public class WebSiteTeamServiceImpl implements IWebSiteTeamService 
{
    @Autowired
    private WebSiteTeamMapper webSiteTeamMapper;

    /**
     * 查询团队介绍
     * 
     * @param id 团队介绍ID
     * @return 团队介绍
     */
    @Override
    public WebSiteTeam selectWebSiteTeamById(Long id)
    {
        return webSiteTeamMapper.selectWebSiteTeamById(id);
    }

    /**
     * 查询团队介绍列表
     * 
     * @param webSiteTeam 团队介绍
     * @return 团队介绍
     */
    @Override
    public List<WebSiteTeam> selectWebSiteTeamList(WebSiteTeam webSiteTeam)
    {
        return webSiteTeamMapper.selectWebSiteTeamList(webSiteTeam);
    }

    /**
     * 新增团队介绍
     * 
     * @param webSiteTeam 团队介绍
     * @return 结果
     */
    @Override
    public int insertWebSiteTeam(WebSiteTeam webSiteTeam)
    {
        return webSiteTeamMapper.insertWebSiteTeam(webSiteTeam);
    }

    /**
     * 修改团队介绍
     * 
     * @param webSiteTeam 团队介绍
     * @return 结果
     */
    @Override
    public int updateWebSiteTeam(WebSiteTeam webSiteTeam)
    {
        return webSiteTeamMapper.updateWebSiteTeam(webSiteTeam);
    }

    /**
     * 批量删除团队介绍
     * 
     * @param ids 需要删除的团队介绍ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteTeamByIds(Long[] ids)
    {
        return webSiteTeamMapper.deleteWebSiteTeamByIds(ids);
    }

    /**
     * 删除团队介绍信息
     * 
     * @param id 团队介绍ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteTeamById(Long id)
    {
        return webSiteTeamMapper.deleteWebSiteTeamById(id);
    }
}
